<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * @package  Core
 *
 * Sets the default route to "welcome"
 */
//$config['post'] = 'blog/view_post';
/*$config['_default'] = array
(
    'uri'=>':controller/:method/:year/:month/:day',
    'default'=>array(
                    'controller'=>'blog',
                    'method'=>'index',
                    'year'=>date('Y'),
                    ),
    
    'regex'=>array(
                   'year'=>'[0-9]{4}',
                   'method'=>'[a-z]'
                   )    
);*/
/*$config['blog'] = array
(
    'uri'=>':controller/:year/:month/:day',
    'default'=>array(
                    'controller'=>'blog',
                    'method'=>'view_post',
                    'year'=>date('Y'),
                    ),
);*/
$config['_default'] = 'blog';
//$config['blog'] = 'view_post/:year/:month/:day';
/*
$config['blog'] = array
(
    //'view_post/:year/:month/:day',
    // Defaults for route keys
	'controller'	=> 'blog',
	'method'	=> 'view_post',
	'year'		=> date('Y'),
 
	//Ensure we get the correct date formats!
	'regex'		=> array(
				'year' 	=> '[0-9]{4}',
				'month'	=> '[0-9]{2}',
				'day'	=> '[0-9]{2}'
				)

);*/
/*$config['blog'] = array
(
        'uri' => 'blog/:year/:month/:day/:id',
        'defaults' => array
        (
                'controller' => 'blog',
                'method' => 'view_post',
                'year' => date('Y'),
        ),
        'regex' => array
        (
                'year'  => '\d{4}',
                'month' => '\d{2}',
                'day'   => '\d{2}',
                'id'    => '\d+',
        )
);*/

/*$config['default'] = array
(
    'uri' => ':controller/:method',
    'defaults' => array
    (
        'controller' => 'blog',
        'method' => 'index',
    ),
);*/